<template>
  <div>
    {{count1}}
    <div>
      <button @click="addCount1(1)">+1</button>
      <button @click="minusCount1(1)">-1</button>
    </div>
    <div>
      <button @click="addCount1Async(1)">+1 async</button>
      <button @click="minusCount1Async(1)">-1 async</button>
    </div>
  </div>
</template>

<script>
import { mapState, mapMutations, mapActions } from 'vuex';
export default {
  computed: {
    ...mapState(['count1'])
  },
  methods: {
    ...mapMutations(['addCount1', 'minusCount1']),
    ...mapActions(['addCount1Async', 'minusCount1Async'])
  }
}
</script>

<style>

</style>